/*Color brand*/
:root {
    --camel: #f8eee6;
    --lightBlue: #b9d7f2;
    --pink: #f6b6b8;
    --purple: #6B2138;
    --orange: #e95226;
    --yellow: #d0c460;
    --brown: #4d4342;
}

/*Polices d'écriture*/
@font-face {
    font-family: 'poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.headPage {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    margin-top: 1vw;
}

/* Styles pour l'image de la carte */
.mapsImage {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mapsImage:hover {
    transform: scale(1.05);
}

/* Modal pour agrandir l'image */
.modal-map {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeInModal 0.3s ease;
}

.modal-map.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-map {
    position: relative;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomInModal 0.3s ease;
}

.modal-image-map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.close-map {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    line-height: 20px;
}

.close-map:hover,
.close-map:focus {
    color: #000;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.insta {
    background-color: white;
    width: 15vw;
    height: 17vw;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12),
        0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: lora, sans-serif;
    margin-top: 1vw;
}

.insta:hover {
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        0 8px 8px rgba(0, 0, 0, 0.25),
        0 16px 16px rgba(0, 0, 0, 0.25),
        0 32px 32px rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) scale(1.05);
}

.insta img {
    width: 12vw;
    height: 12vw;
    object-fit: cover;
}

.insta h3,
.insta .highlight-text {
    font-size: 1.5vw;
    color: var(--brown);
}

.insta .highlight-text {
    font-family: lora, sans-serif;
    margin: 0;
}

.nom {
    font-size: 1vw;
    color: var(--brown);
    margin-bottom: 1.5vw;
}

.role {
    font-size: 1vw;
    color: var(--brown);
}

.insta2 {
    background-color: white;
    width: 15vw;
    height: 17vw;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12),
        0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(3deg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: lora, sans-serif;
    margin-top: 1vw;
}

.insta2:hover {
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        0 8px 8px rgba(0, 0, 0, 0.25),
        0 16px 16px rgba(0, 0, 0, 0.25),
        0 32px 32px rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) scale(1.05);
}

.insta2 img {
    width: 12vw;
    height: 12vw;
    object-fit: cover;
}

.insta2 h3,
.insta2 .highlight-text {
    font-size: 1.5vw;
    color: var(--brown);
}

.insta2 .highlight-text {
    font-family: lora, sans-serif;
    margin: 0;
}

.premiereSection {
    margin-top: 20vw;
    margin-bottom: 3vw;
}

.ltrafPres {
    margin-top: 7vw;
}

h1.ltraf {
    font-family: poppins, sans-serif;
    font-size: 3vw;
    letter-spacing: 1px;
    font-weight: bold;
    margin: auto;
    display: flex;
    justify-content: center;
    color: var(--brown);
    max-width: 40vw;
    text-align: center;
}

h2.subtitleLtraf {
    font-family: poppins, sans-serif;
    font-style: italic;
    font-size: 1.2vw;
    font-weight: 500;
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 3vw;
    color: var(--brown)
}



.hpcSection {
    background-color: var(--darkGreen);
    color: var(--white);
    font-family: poppins, sans-serif;
    font-size: 1vw;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

.souris {
    display: flex;
    justify-content: center;
    margin: 5vw 0;
}

.mouseLtraf {
    width: 30px;
    height: 50px;
    border: 2px solid var(--brown);
    border-radius: 25px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.scrollerMouseLtraf {
    width: 6px;
    height: 10px;
    background-color: var(--brown);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
    }

    50% {
        top: 15px;
    }

    100% {
        top: 10px;
    }
}


#Evenement {
    position: relative;
    text-align: center;
    padding: 3vw 0;
    overflow-x: hidden;
    width: 100%;
}


.slider-container {
    position: relative;
    width: 70vw;
    margin: 0 auto;
    overflow: hidden;
    contain: layout style paint;
    z-index: 1;
}

.parent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 95%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    z-index: 0;
    pointer-events: none;
}


.div1-background-grid {
    grid-area: 1 / 1 / 2 / 2;
    background-color: var(--purple);
}

.div1-background-grid h2 {
    font-family: poppins, sans-serif;
    font-size: 2.5vw;
    color: var(--camel);
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.div2-background-grid {
    grid-area: 1 / 2 / 2 / 3;
    background-color: var(--orange);
}

.div3-background-grid {
    grid-area: 1 / 3 / 2 / 4;
    background-color: var(--purple);
}

.div4-background-grid {
    grid-area: 1 / 4 / 2 / 5;
    background-color: var(--orange);
}

.div5-background-grid {
    grid-area: 1 / 5 / 2 / 6;
    background-color: var(--purple);
}

.div6-background-grid {
    grid-area: 2 / 1 / 3 / 2;
    background-color: var(--orange);
}

.div7-background-grid {
    grid-area: 2 / 2 / 3 / 3;
    background-color: var(--purple);
}

.div8-background-grid {
    grid-area: 2 / 3 / 3 / 4;
    background-color: var(--orange);
}

.div9-background-grid {
    grid-area: 2 / 4 / 3 / 5;
    background-color: var(--purple);
}

.div10-background-grid {
    grid-area: 2 / 5 / 3 / 6;
    background-color: var(--orange);
}

.div11-background-grid {
    grid-area: 3 / 1 / 4 / 3;
    background-color: var(--purple);
}

.div12-background-grid {
    grid-area: 3 / 3 / 4 / 5;
    background-color: var(--orange);
}

.div13-background-grid {
    grid-area: 3 / 5 / 4 / 6;
    background-color: var(--purple);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    gap: 1vw;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translate3d(0, 0, 0);
    contain: layout style paint;
    position: relative;
    z-index: 1;
    width: max-content;
    padding: 3vw 0;
    margin-top: 7vw;
    padding-left: 0;
}

.event1Images {
    min-width: 34.5vw;
    width: 34.5vw;
    height: 30vw;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    transform: translateZ(0);
    content-visibility: auto;
    contain: layout paint;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.precedante,
.suivante {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--brown);
    border: none;
    padding: 1vw;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
}

.precedante:hover,
.suivante:hover {
    background-color: var(--yellow);
}

.precedante {
    left: 5vw;
}

.suivante {
    right: 5vw;
}

.precedante img,
.suivante img {
    width: 2vw;
    height: 2vw;
    display: block;
}

.parent {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.div1-background-grid {
    grid-area: 1 / 1 / 2 / 5;
}

.div2-background-grid {
    grid-area: 1 / 5 / 2 / 6;
}

.div3-background-grid {
    grid-area: 1 / 6 / 2 / 7;
}

.div4-background-grid {
    grid-area: 1 / 7 / 2 / 8;
}

.div5-background-grid {
    grid-area: 1 / 8 / 2 / 9;
}

.div6-background-grid {
    grid-area: 1 / 9 / 2 / 10;
}

.div7-background-grid {
    grid-area: 2 / 1 / 3 / 10;
}

.div8-background-grid {
    grid-area: 3 / 1 / 4 / 10;
}

.div9-background-grid {
    grid-area: 4 / 1 / 5 / 2;
}

.div10-background-grid {
    grid-area: 4 / 2 / 5 / 3;
}

.div11-background-grid {
    grid-area: 4 / 3 / 5 / 8;
}

.div12-background-grid {
    grid-area: 4 / 8 / 5 / 9;
}

.div13-background-grid {
    grid-area: 4 / 9 / 5 / 10;
}

.mapsImage {
    width: 20vw;
    height: auto;
    margin: 0 2vw;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.histoire {
    margin: 7vw 0;
}

.histoireTitle {
    font-family: poppins, sans-serif;
    font-size: 2vw;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--brown);
    margin-bottom: 20px;
    margin: 3vw;
}

.histoireSubTitle {
    font-family: lora, sans-serif;
    font-style: italic;
    font-size: 1.2vw;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 40px;
    opacity: 0.9;
    margin: 3vw;
}

.allArticles {
    display: flex;
    justify-content: center;
    gap: 4vw;
    margin: 7vw 0;
}

.leLieu,
.lAsso,
.values {
    width: 25vw;
}

.leLieu .titleLeLieu,
.lAsso .titleLAsso,
.values .titleValues {
    display: flex;
    align-items: center;
    justify-content: center;
}

.titleLeLieu h3,
.titleLAsso h3,
.titleValues h3 {
    font-family: poppins, sans-serif;
    font-size: 1.5vw;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--brown);
}


.leLieu img,
.lAsso img,
.values img {
    width: 4vw;
    height: 4vw;
    margin-right: 1vw;
}

.leLieu h4,
.lAsso h4,
.values h4 {
    font-family: poppins, sans-serif;
    font-size: 1.5vw;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--brown);
}

.leLieu p,
.lAsso p,
.values p {
    font-family: poppins, serif;
    font-size: 1.1vw;
    color: var(--brown);
    margin-top: 1vw;
    text-align: center;
    line-height: 1.5;
}


.soutienHistoire {
    font-size: 1.2vw;
    font-weight: 500;
    display: flex;
    justify-content: space-evenly;

}

.soutienHistoire button.histoirePage {
    margin-top: 2vw;
    background-color: var(--purple);
    color: var(--pink);
    font-family: poppins, sans-serif;
    font-size: 1.2vw;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    transition: .3s all ease;

}

.soutienHistoire button.histoirePage:hover {
    background-color: var(--yellow);
    color: white;
    cursor: pointer;
}

.soutienHistoire button.soutien {
    margin-top: 2vw;
    background-color: var(--brown);
    color: var(--yellow);
    font-family: poppins, sans-serif;
    font-size: 1.2vw;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    transition: .3s all ease;
}

.soutienHistoire button.soutien:hover {
    background-color: var(--pink);
    color: white;
    cursor: pointer;
}

.prochainEvent {
    margin: 7vw 0;
    display: flex;
    align-items: center;
}

.date {
    clip-path: polygon(80% 0, 100% 25%, 100% 100%, 0 100%, 0 0);
    background-color: var(--purple);
    color: var(--camel);
    font-family: poppins, sans-serif;
    font-size: 1.5vw;
    font-weight: 600;
    padding: 10px 20px;
    width: 30vw;
    height: 25vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

.lineDate {
    width: 130%;
    height: 1vw;
    background-color: white;
    margin-bottom: 2vw;
}

.dateEvent {
    text-align: center;
}

.addEvent {
    font-family: poppins, sans-serif;
    font-weight: 700;
    font-size: 1.2vw;
    border: none;
    border-radius: 5px;
    padding: 20px 30px;
    cursor: pointer;
    color: var(--brown);
    background-color: var(--yellow);
    transition: .3s all ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.addEvent:hover {
    transform: scale(1.1);
}

.addEvent:active {
    transform: translateY(0.2vw) translateX(0.1vw);
}

.descriptionEvent {
    width: 60vw;
    text-align: center;
    margin-left: 5vw;
}

.titleForEvent2 {
    font-family: poppins, sans-serif;
    font-size: 2vw;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--brown);
    margin: 3vw;
}

.pEvent2Values {
    display: flex;
    justify-content: center;
    width: 50%;
    margin: 2vw auto;
    font-family: poppins, serif;
    font-size: 1.2vw;
    color: var(--brown);
    line-height: 1.5;
}

.partenairesTitle {
    font-family: poppins, sans-serif;
    font-size: 2vw;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--brown);
    margin-bottom: 10px;
    margin: 3vw;
}

.partenairesSubTitle {
    font-family: lora, sans-serif;
    font-style: italic;
    font-size: 1.2vw;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 30px;
    opacity: 0.9;
    margin: 3vw;
}

.messageForPartenaires {
    margin: 3vw;
    text-align: center;
}

.pMessageForPartenaires {
    font-family: poppins, serif;
    font-size: 1.2vw;
    color: var(--brown);
    line-height: 1.5;
    font-weight: 700;
}

.listePartenaires {
    font-family: poppins, serif;
    font-size: 1.2vw;
    color: var(--brown);
    line-height: 1.5;
}

.listePartenaires a {
    color: var(--brown);
    text-decoration: underline;
    transition: .3s all ease;
}

.listePartenaires a:hover {
    color: var(--orange);
}


/* Mobile (téléphone) - Détection basée sur le ratio d'aspect et l'orientation */
@media screen and ((orientation: portrait) and (max-aspect-ratio: 2/3)),
       screen and ((max-width: 768px) and (hover: none) and (pointer: coarse)) {
    .headPage {
        flex-direction: column;
        gap: 8vw;
        padding: 8vw 0;
    }

    .mapsImage{
        width: 80vw;
        height: auto;
    }

    .titleLeLieu h3,
    .titleLAsso h3,
    .titleValues h3 {
        font-family: poppins, sans-serif;
        font-size: 4vw;
        letter-spacing: 1px;
        font-weight: bold;
        color: var(--brown);
    }

    .insta,
    .insta2 {
        width: 70vw;
        height: 75vw;
    }

    .insta img,
    .insta2 img {
        width: 60vw;
        height: 60vw;
    }

    .insta h3,
    .insta2 h3,
    .insta .highlight-text,
    .insta2 .highlight-text {
        font-size: 5vw;
        margin-top: 2vw;
    }

    .nom,
    .role {
        font-size: 4vw;
    }

    .premiereSection {
        margin-top: 0;
        padding: 0 5vw;
    }

    h1.ltraf {
        font-size: 8vw;
        text-align: center;
        max-width: none;
    }

    h2.subtitleLtraf {
        font-size: 4.5vw;
        margin-top: 4vw;
        text-align: center;
    }

    .buttonsLtraf {
        flex-direction: column;
        gap: 4vw;
        margin-top: 6vw;
        align-items: center;
    }

    .billeterieSection,
    .hpcSection {
        font-size: 4.5vw;
        padding: 4vw 8vw;
        width: 60vw;
    }

    #Evenement {
        padding: 8vw 0;
    }

    .slider-container {
        width: 90vw;
    }

    .slider-wrapper {
        gap: 2vw;
        margin-top: 10vw;
        padding: 5vw 0;
    }

    .event1Images {
        min-width: 90vw;
        width: 90vw;
        height: 70vw;
    }

    .precedante,
    .suivante {
        padding: 3vw;
    }

    .precedante {
        left: 2vw;
    }

    .suivante {
        right: 2vw;
    }

    .precedante img,
    .suivante img {
        width: 6vw;
        height: 6vw;
    }

    .div1-background-grid h2 {
        font-size: 5vw;
        padding: 2vw;
    }


    .histoire {
        margin: 12vw 0;
        padding: 0 5vw;
    }

    .histoireTitle {
        font-size: 6vw;
        margin: 5vw;
        text-align: center;
    }

    .histoireSubTitle {
        font-size: 4.5vw;
        margin: 5vw;
        text-align: center;
    }

    .allArticles {
        flex-direction: column;
        gap: 8vw;
        margin: 10vw 0;
    }

    .leLieu,
    .lAsso,
    .values {
        width: 100%;
    }

    .leLieu img,
    .lAsso img,
    .values img {
        width: 12vw;
        height: 12vw;
        margin-right: 3vw;
    }

    .leLieu h4,
    .lAsso h4,
    .values h4 {
        font-size: 5vw;
    }

    .leLieu p,
    .lAsso p,
    .values p {
        font-size: 4vw;
        margin-top: 3vw;
        padding: 0 2vw;
    }

    .soutienHistoire {
        flex-direction: column;
        gap: 4vw;
        align-items: center;
    }

    .soutienHistoire button.histoirePage,
    .soutienHistoire button.soutien {
        font-size: 4.5vw;
        padding: 4vw 8vw;
        width: 70vw;
    }

    .prochainEvent {
        flex-direction: column;
        margin: 12vw 0;
        padding: 0 5vw;
    }

    .date {
        clip-path: none;
        width: 90vw;
        height: auto;
        padding: 8vw;
        border-radius: 10px;
    }

    .lineDate {
        width: 100%;
        height: 1.5vw;
        margin-bottom: 4vw;
    }

    .dateEvent {
        font-size: 6vw;
    }

    .addEvent {
        font-size: 4.5vw;
        padding: 4vw 6vw;
        margin-top: 4vw;
    }

    .descriptionEvent {
        width: 100%;
        margin-left: 0;
        margin-top: 8vw;
    }

    .titleForEvent2 {
        font-size: 6vw;
        margin: 5vw;
    }

    .pEvent2Values {
        font-size: 4vw;
        width: 90%;
        margin: 4vw auto;
    }

    .partenairesSection {
        padding: 0 5vw;
    }

    .partenairesTitle {
        font-size: 6vw;
        margin: 5vw;
        text-align: center;
    }

    .partenairesSubTitle {
        font-size: 4.5vw;
        margin: 5vw;
        text-align: center;
    }

    .pMessageForPartenaires,
    .listePartenaires {
        font-size: 4vw;
    }
}


/* Tablette - Écrans moyens en portrait ou paysage tactile */
@media screen and ((orientation: portrait) and (min-aspect-ratio: 2/3) and (max-width: 1024px)),
       screen and ((orientation: landscape) and (max-width: 1366px) and (hover: none)),
       screen and ((min-width: 769px) and (max-width: 1024px) and (orientation: portrait)) {
    .headPage {
        gap: 5vw;
        padding: 5vw 0;
    }

    .insta,
    .insta2 {
        width: 25vw;
        height: 28vw;
    }

    .insta img,
    .insta2 img {
        width: 20vw;
        height: 20vw;
    }

    .insta h3,
    .insta2 h3,
    .insta .highlight-text,
    .insta2 .highlight-text {
        font-size: 2.5vw;
    }

    h1.ltraf {
        font-size: 4vw;
    }

    h2.subtitleLtraf {
        font-size: 2vw;
    }

    .billeterieSection,
    .hpcSection {
        font-size: 1.8vw;
        padding: 2vw 4vw;
    }


    .slider-container {
        width: 80vw;
    }

    .event1Images {
        min-width: 39vw;
        width: 39vw;
        height: 35vw;
    }

    .precedante img,
    .suivante img {
        width: 3vw;
        height: 3vw;
    }

    .div1-background-grid h2 {
        font-size: 3.5vw;
    }


    .histoireTitle {
        font-size: 3vw;
    }

    .histoireSubTitle {
        font-size: 2vw;
    }

    .allArticles {
        gap: 3vw;
    }

    .leLieu,
    .lAsso,
    .values {
        width: 28vw;
    }

    .leLieu h4,
    .lAsso h4,
    .values h4 {
        font-size: 2vw;
    }

    .leLieu p,
    .lAsso p,
    .values p {
        font-size: 1.5vw;
    }

    .soutienHistoire button.histoirePage,
    .soutienHistoire button.soutien {
        font-size: 1.8vw;
    }


    .date {
        width: 35vw;
        height: 28vw;
    }

    .dateEvent {
        font-size: 2.5vw;
    }

    .addEvent {
        font-size: 1.8vw;
    }

    .descriptionEvent {
        width: 50vw;
    }

    .titleForEvent2 {
        font-size: 3vw;
    }

    .pEvent2Values {
        font-size: 1.8vw;
    }


    .partenairesTitle {
        font-size: 3vw;
    }

    .partenairesSubTitle {
        font-size: 2vw;
    }

    .pMessageForPartenaires,
    .listePartenaires {
        font-size: 1.8vw;
    }
}